test(tinytorch): regression coverage for systems/perf module gaps - #4
Merged
Conversation
2 tasks
Covers profiling, quantization, acceleration, and memoization: count_flops' dispatcher branch for layers-bearing non-Sequential objects, quantize_model's two unsupported-input error paths, vectorized_matmul/tiled_matmul's dimensionality and shape-mismatch guards (the audit's highest-priority finding, TinyTorch's core accelerated matmul had zero coverage on its input validation), and disable_kv_cache's early-return/warning branch. Pure regression tests, no source or package files touched. Each test was verified against a clean origin/dev checkout before being added.
Shashank-Tripathi-07
force-pushed
the
mcdc-04-systems-perf
branch
from
August 14, 2026 23:36
dbfa704 to
a469935
Compare
Shashank-Tripathi-07
force-pushed
the
mcdc-03-architecture
branch
from
August 14, 2026 23:36
2ad9cd2 to
49d0bb7
Compare
|
Thanks @Shashank-Tripathi-07! 🎉 @Shashank-Tripathi-07 was already credited in tinytorch for: code, test. The contributor tables are now handled directly by this workflow; no follow-up command is needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds regression tests for systems/perf module gaps found by an MC/DC audit: profiling, quantization, acceleration, and memoization. Independent of the other companion PRs in this series (#1, #2, #3, #5), each covers a different module group and can be reviewed/merged in any order.
Covered gaps:
count_flops's dispatcher branch for layers-bearing non-Sequential objectsquantize_model's two unsupported-input error pathsvectorized_matmul/tiled_matmul's dimensionality and shape-mismatch guards, the audit's highest-priority finding: TinyTorch's core accelerated matmul had zero coverage on its input validationdisable_kv_cache's early-return/warning branchPure regression tests, no source or package files touched.
Test plan
pytest tests/14_profiling tests/15_quantization tests/17_acceleration tests/18_memoization -qpasses locally, including all new cases